<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: yahoo  YAHOO.util.YAHOO.env   (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>YAHOO Global&nbsp; <span class="subtitle">2.7.0b</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_yahoo.html" title="yahoo">yahoo</a>
                 &gt; YAHOO.util.YAHOO.env 
                
        <form onsubmit="return false">
            <div id="propertysearch">
                搜索: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">显示 Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">显示 Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">显示 Deprecated</label></span>
                </fieldset>
            </form>

                    <h2>
                        

                        <code>static</code>
                        
                            Class <b property="yui:name">YAHOO.util.YAHOO.env</b>
                        <span class="extends">
                        </span>

                    </h2>
                    <!-- class tree goes here -->
                    
                
  

                    <div class="summary description" property="yui:description">
                        说明：	YAHOO.env 用来追踪YUI库和浏览器的信息
                    </div>

                    
                    <div rel="yui:properties" resource="#properties">
                        <div class="section field details">
                            <h3 id="properties">Properties</h3>
                            <div class="content">
                                    <div class="" rel="yui:property" resource="#property_listeners">
                                    <h4><a name="property_listeners" property="yui:name">listeners</a>
                                        - <code><span property="yui:type">Function[]</span></code>
                                    </h4>
                                    <div class="detail">
                                        <div class="description" property="yui:description">
                                            每次YUI模块被注册的时候执行的函数列表
                                        </div>
                                    </div>
     
                                        


                                    <hr />
                                    </div>
                                    <div class="" rel="yui:property" resource="#property_modules">
                                    <h4><a name="property_modules" property="yui:name">modules</a>
                                        - <code><span property="yui:type">Object[]</span></code>
                                    </h4>
                                    <div class="detail">
                                        <div class="description" property="yui:description">
                                            保存所有已经注册的YUI模块的版本信息
                                        </div>
                                    </div>
     
                                        


                                    <hr />
                                    </div>
                            </div>
                        </div>

                    </div>

                    <div rel="yui:methods" resource="#methods">
                        <div class="section method details">
                            <h3 id="methods">Methods</h3>
                            <div class="content">
                                    <div class="" rel="yui:method" resource="#method_getVersion">
                                    <h4>
                                        <a name="method_getVersion">getVersion</a></h4>
                                    <div class="detail" >
                                        <code>
                                        
                                         static 
                                        
                                        Object
                                            <strong property="yui:name">getVersion</strong>
                                           (
                                                
                                                        
                                                         name
                                                    
                                                
                                            )
                                        </code>
                                        
                                        <div class="description" property="yui:description">
                                            说明：	返回指定模块的版本信息:
<dl>
<dt>name:</dt>      <dd>该模块的名称</dd>
<dt>version:</dt>   <dd>该模块用到的（YUI）版本</dd>
<dt>build:</dt>     <dd>该模块使用的创建号</dd>(?)
<dt>versions:</dt>  <dd>所有被注册的版本</dd>
<dt>builds:</dt>    <dd>所有被注册的创建号.</dd>
<dt>mainClass:</dt> <dd>标记当前版本和构建的对象
如果mainClass.VERSION != version 或者 mainClass.BUILD != build,
并且同时加载多个版本的库，可能导致一些问题.</dd>
</dl>
                                        </div>

                                        <div class="description">

                                                <dl rel="yui:parameters">
                                                    <dt>Parameters:</dt>
                                                        <dd rel="yui:parameter">
                                                        <code><span property="yui:name">name</span>
                                                        &lt;<span property="yui:type">String</span>&gt;
                                                        </code>
                                                        <span property="yui:description"> 该模块的名称 (event, slider, 等等)</span>
                                                        </dd>
                                                </dl>

                                                <dl>
                                                    <dt>Returns:
                                                    <code property="yui:return">
                                                        Object
                                                    </code></dt>
                                                    <dd property="yui:returnInfo">版本信息对象</dd>
                                                </dl>


             

                                        </div>

                                    </div>
                                    <hr />
                                    </div>
                            </div>
                        </div>

                    </div>

                    <div rel="yui:events" resource="#events">


                    </div>

                    <div rel="yui:attributes" resource="#configattributes">

                    </div>

			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>模块</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class="selected"><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>类</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.YAHOO.html" title="YAHOO.util.YAHOO">YAHOO.util.YAHOO</a></li>
                                <li class="selected"><a href="YAHOO.util.YAHOO.env.html" title="YAHOO.util.YAHOO.env">YAHOO.util.YAHOO.env</a></li>
                                <li class=""><a href="YAHOO.util.YAHOO.env.ua.html" title="YAHOO.util.YAHOO.env.ua">YAHOO.util.YAHOO.env.ua</a></li>
                                <li class=""><a href="YAHOO.util.YAHOO.lang.html" title="YAHOO.util.YAHOO.lang">YAHOO.util.YAHOO.lang</a></li>
                                <li class=""><a href="YAHOO.util.YAHOO_config.html" title="YAHOO.util.YAHOO_config">YAHOO.util.YAHOO_config</a></li>
                        </ul>
                    </div>


                    <div id="propertyList" class="module">
                        <h4>属性</h4>
                        <ul class="content">        
                                <li class=""><a href="#property_listeners" title="listeners">listeners</a></li>
                                <li class=""><a href="#property_modules" title="modules">modules</a></li>
                        </ul>
                    </div>

                    <div id="methodsList" class="module">
                        <h4>方法</h4>
                        <ul class="content">        
                                <li class=""><a href="#method_getVersion" title="getVersion">getVersion</a></li>
                        </ul>
                    </div>



            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "YAHOO.util.YAHOO.env.html#method_getVersion", "access": "", "host": "YAHOO.util.YAHOO.env", "type": "method", "name": "getVersion"}, {"url": "YAHOO.util.YAHOO_config.html#property_injecting", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "injecting"}, {"url": "YAHOO.util.YAHOO_config.html#property_listener", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "listener"}, {"url": "YAHOO.util.YAHOO.env.html#property_listeners", "access": "", "host": "YAHOO.util.YAHOO.env", "type": "property", "name": "listeners"}, {"url": "YAHOO.util.YAHOO_config.html#property_load", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "load"}, {"url": "YAHOO.util.YAHOO_config.html#property_locale", "access": "", "host": "YAHOO.util.YAHOO_config", "type": "property", "name": "locale"}, {"url": "YAHOO.util.YAHOO.html#method_log", "access": "", "host": "YAHOO.util.YAHOO", "type": "method", "name": "log"}, {"url": "YAHOO.util.YAHOO.env.html#property_modules", "access": "", "host": "YAHOO.util.YAHOO.env", "type": "property", "name": "modules"}, {"url": "YAHOO.util.YAHOO.html#method_namespace", "access": "", "host": "YAHOO.util.YAHOO", "type": "method", "name": "namespace"}, {"url": "YAHOO.util.YAHOO.html#method_register", "access": "", "host": "YAHOO.util.YAHOO", "type": "method", "name": "register"}];
</script>
</body>
</html>
